﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer.Patient;
using System.Windows.Forms;
using ModelLayer.Patient;

namespace ControllerLayer.PatientInformation
{
    public class PatientInformationViewController
    {

        public static string newPatientNoteCategoryOID;

        public static string GetPatientOIDByPID(string PID)
        {
            return PatientDataAccess.GetPatientOID(PID);
        }

        public static void FillFormForNewNote(string patientOID, Control noteOID_TextBox, Control NoteVersion_TextBox, Control patientOID_TextBox, Control creationTime_DateTimePicker, Control CatOID_TextBox1, Control catVersion_TextBox1, Control authorOID_ComboBox, Control categoryOID_TextBox, CheckBox deactivated_CheckBox)
        {
            noteOID_TextBox.Text = Guid.NewGuid().ToString();
            NoteVersion_TextBox.Text = "1";
            patientOID_TextBox.Text = patientOID;
            creationTime_DateTimePicker.Text = DateTime.Now.ToString();
            
            CatOID_TextBox1.Text = Guid.NewGuid().ToString();
            catVersion_TextBox1.Text = "1";

            authorOID_ComboBox.Enabled = true;

            categoryOID_TextBox.Text = CatOID_TextBox1.Text;

           deactivated_CheckBox.Checked = false;
        }
    }
}
